﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="QLBN.aspx.cs" Inherits="QLBV.QLBN" %>
<asp:Content ID="Content1" runat="server" contentplaceholderid="Content" >
   <asp:Label ID="Label1" runat="server" Text="Quản lý bệnh nhân" BackColor="White" Font-Size="X-Large" ForeColor="#3333FF"></asp:Label>
    <br />
    <div>      
        <asp:GridView ID="GridView1" runat="server" AutoGenerateSelectButton="True" HorizontalAlign="Left" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" AllowPaging="True" BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" GridLines="Vertical" PageSize="5" ForeColor="Black" OnPageIndexChanging="GridView1_PageIndexChanging" Width="100%">
            <AlternatingRowStyle BackColor="#CCCCCC" />
            <FooterStyle BackColor="#CCCCCC" />
            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#808080" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#383838" />
        </asp:GridView>
    </div>
    <br />
    <div><asp:Label ID="lbMsg" runat="server" Font-Size="Medium" ForeColor="Red"></asp:Label></div>
    <div>
        <table>
        <tr>
            <td><asp:Label ID="Label2" runat="server" Text="Mã bệnh nhân: "></asp:Label></td>
            <td><asp:TextBox ID="txtMaBN" runat="server" Enabled="False" Width="32px"></asp:TextBox></td>
            <td style="width:20px"></td>
            <td><asp:Label ID="Label3" runat="server" Text="Tên thân nhân: "></asp:Label></td>
            <td><asp:TextBox ID="txtNameTN" runat="server" Width="140px"></asp:TextBox></td>
        </tr>
        <tr>
            <td><asp:Label ID="l1" runat="server" Text="Tên bệnh nhân: "></asp:Label></td>
            <td><asp:TextBox ID="txtName" runat="server" Width="182px"></asp:TextBox></td>
            <td style="width:20px"></td>
            <td><asp:Label ID="l2" runat="server" Text="Quan hệ: "></asp:Label></td>
            <td> <asp:TextBox ID="txtQH" runat="server" Width="139px"></asp:TextBox></td>
        </tr>   
        <tr>
            <td><asp:Label ID="Label6" runat="server" Text="Số điện thoại"></asp:Label></td>
            <td><asp:TextBox ID="txtPhone" runat="server" Width="181px"></asp:TextBox></td>
            <td style="width:20px"></td>
            <td><asp:Label ID="Label4" runat="server" Text="Số điện thoại"></asp:Label></td>
            <td><asp:TextBox ID="txtPhoneTN" runat="server" Width="140px"></asp:TextBox></td>
        </tr>
        <tr>
            <td> <asp:Label ID="Label5" runat="server" Text="Giới tính"></asp:Label></td>
            <td>
                <asp:DropDownList ID="listGender" runat="server">
                    <asp:ListItem>Nam</asp:ListItem>
                    <asp:ListItem>Nữ</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td style="width:20px"></td>
            <td> <asp:Label ID="Label15" runat="server" Text="Địa chỉ"></asp:Label></td>
            <td><asp:TextBox ID="txtAddressTN" runat="server" Height="20px" Width="141px"></asp:TextBox></td>
        </tr>      
        <tr>
            <td> <asp:Label ID="Label7" runat="server" Text="Hôn nhân"></asp:Label></td>
            <td><asp:TextBox ID="txtMarital" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td> <asp:Label ID="Label13" runat="server" Text="Căn bệnh"></asp:Label></td>
            <td><asp:TextBox ID="txtCanBenh" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td><asp:Label ID="Label12" runat="server" Text="Địa chỉ"></asp:Label></td>
            <td><asp:TextBox ID="txtAddressBN" runat="server" Height="17px" Width="173px"></asp:TextBox></td>
        </tr>    
        <tr>
            <td> <asp:Label ID="Label14" runat="server" Text="BS Khám"></asp:Label></td>
            <td><asp:TextBox ID="txtBS" runat="server" Height="17px" Width="173px" Enabled="False"></asp:TextBox></td>
        </tr>  
        <tr>
            <td><asp:Button ID="btInsert" runat="server" Text="Thêm BN" OnClick="btInsert_Click" /></td>
            <td><asp:Button ID="btUpdate" runat="server" Text="Cập nhật BN" OnClick="btUpdate_Click" /></td>
            <td><asp:Button ID="btDelete" runat="server" Text="Xóa BN " OnClick="btDelete_Click" /></td>
            <td>  <asp:Button ID="btReset" runat="server" Text="Làm mới" OnClick="btReset_Click" /></td>
        </tr>         
      </table>
   </div>  
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    
    
</asp:Content>


